package com.amazon.shop.bean.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzj
 * @since 2021-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "tbl_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;
    /**
     * 昵称
     */
    private String nickname;

    /**
     * 账号
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 是否删除 0未删除 1删除
     */
    private Integer delflag;

    private Date createtime;

    private Date updatetime;


    private Integer ismanager;

    private Integer disable;

    public User(String nickname, String username, String password) {
        this.nickname = nickname;
        this.username = username;
        this.password = password;
    }
    public User() {
    }
}
